using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Text;
using System.Windows.Forms;

namespace Jeffrey.Xuthus
{
    public partial class XProgressForm : Form
    {
        public XProgressForm()
        {
            InitializeComponent();
            m_Timer = new System.Timers.Timer(250);

            m_Timer.AutoReset = true;
            m_Timer.Enabled   = true;
            m_Timer.Elapsed  += ChangeProgress;
        }

        private void ChangeProgress(Object sender, System.Timers.ElapsedEventArgs ee)
        {
            if (XProgressBar.Value >= XProgressBar.Maximum)
                XProgressBar.Value = 0;
            else
                XProgressBar.Value += 10;
        }

        private System.Timers.Timer m_Timer;
    }
}